package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.border.SoftBevelBorder;
import javax.swing.SwingUtilities;
import javax.swing.table.AbstractTableModel;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaGenerarPartido extends javax.swing.JFrame {
	private JPanel panContenedor;
	private JButton jButton1;
	private JLabel lblRondaEliminatoria;
	private JScrollPane scpListado;
	private JButton btnSalir;
	private JTable tblListado;


	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaGenerarPartido inst = new VentanaGenerarPartido();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VentanaGenerarPartido() {
		super();
		initGUI();
	}
	
	private void initGUI()
	{
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				panContenedor = new JPanel();
				getContentPane().add(panContenedor, BorderLayout.CENTER);
				panContenedor.setLayout(null);
				panContenedor.setPreferredSize(new java.awt.Dimension(1125, 512));
			
				
				{
					scpListado = new JScrollPane();
					panContenedor.add(scpListado);
					scpListado.setBounds(12, 57, 1081, 369);
					scpListado.setBackground(new java.awt.Color(173,216,230));
					scpListado.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
					{
						tblListado = new JTable();
						scpListado.setViewportView(tblListado);
					}
				}
				{
					lblRondaEliminatoria = new JLabel();
					panContenedor.add(lblRondaEliminatoria);
					lblRondaEliminatoria.setText("Partidos Realizados");
					lblRondaEliminatoria.setBounds(368, 12, 418, 31);
					lblRondaEliminatoria.setFont(new java.awt.Font("Bitstream Charter",0,36));
					lblRondaEliminatoria.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
				}
				{
					jButton1 = new JButton();
					panContenedor.add(jButton1);
					jButton1.setText("Salir");
					jButton1.setBounds(42, 453, 110, 37);
				}

				{
					btnSalir = new JButton();
					btnSalir.setText("Salir");
					btnSalir.setBounds(180, 292, 137, 42);
				}
			}
			pack();
			this.setSize(1115, 542);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void setListado(AbstractTableModel abstractTableModel){
		tblListado.setModel(abstractTableModel);
	}
	
	public void mostrarMensaje(String mensaje){
		JOptionPane.showMessageDialog(this, mensaje);
	}

	public void agregarListener(ActionListener action)
	{
		
		btnSalir.addActionListener(action);
	}
	
	
	public void setBtnCarrerasJugadores(JButton btnCarrerasJugadores) {
	}

	public JButton getBtnSalir() {
		return btnSalir;
	}

	public void setBtnSalir(JButton btnSalir) {
	}
	
}
